package com.woorigil.social.domain.deal.finder;

import java.util.concurrent.Callable;

import com.woorigil.social.domain.deal.DealFindService;
import com.woorigil.social.domain.deal.DealList;

public class EndDealFindCaller implements Callable<DealList> {
	private String sid;
	private int mainCategoryId;
	private int subCategoryId;
	private int offset;
	
	private DealFindService dealFindService;
	
	public EndDealFindCaller(DealFindService dealFindService, String sid, int mainCategoryId, int subCategoryId, int offset, String nowLat, String nowLon) {
		this.dealFindService = dealFindService;
		this.sid = sid;
		this.mainCategoryId = mainCategoryId;
		this.subCategoryId = subCategoryId;
		this.offset = offset;
	}
	
	public DealList call() throws Exception {
		return dealFindService.findEndDealList(mainCategoryId, subCategoryId, offset);
	}
}
